package cn.lg.soar.message.api.enums;

import cn.lg.soar.common.annotations.DictDefine;
import cn.lg.soar.common.data.dict.IDict;
import com.baomidou.mybatisplus.annotation.IEnum;

/**
 * @author luguoxiang
 * 开源项目：https://gitee.com/lgx1992/lg-soar 求star！请给我star！请帮我点个star！
 */
@DictDefine(name = "消息收件人类型")
public enum MsgAddresseeTypeEnum implements IDict<Integer>, IEnum<Integer> {

    all("所有收件人", 0),
    single("单一收件人", 1),
    multiple("多个收件人", 2),
    all_pc("所有收件人pc端", 10),
    single_pc("单一收件人pc端", 11),
    multiple_pc("多个收件人pc端", 12),
    all_mb("所有收件人移动端", 20),
    single_mb("单一收件人移动端", 21),
    multiple_mb("多个收件人移动端", 22)
    ;
    MsgAddresseeTypeEnum(String label, int value){
        this.label = label;
        this.value = value;
    }

    private final String label;
    private final int value;
    @Override
    public Integer getValue() {
        return this.value;
    }
    @Override
    public String getLabel() {
        return this.label;
    }

}
